﻿using System.Diagnostics;
using System.Xml.Serialization;
using PrearrangedChaos.AgileZen.Service.Model;

namespace PrearrangedChaos.AgileZen.Service.Rest
{
    /// <remarks/>
    [DebuggerStepThrough()]
    [XmlTypeAttribute(AnonymousType = true)]
    [XmlRootAttribute(ElementName = "invites", Namespace = "", IsNullable = false)]
    [ZenRestRequest("projects/{ProjectId}/invites")]
    public partial class InviteCollection : PagingCollection<Invite>
    {
        private Invite[] _invites;

        /// <remarks/>
        [XmlArrayItem("invite", IsNullable = false, Type = typeof(Invite))]
        [XmlArray(ElementName = "items")]
        public Invite[] Items
        {
            get
            {
                return this._invites;
            }
            set
            {
                this._invites = value;
            }
        }

        public override Invite[] GetItems()
        {
            return this._invites;
        }
    }
}
